package com.swt.gap.dao;

import com.swt.gap.model.entity.SysDepartment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysDepartmentDao {
    int deleteByPrimaryKey(Integer departmentId);

    int insertSelective(SysDepartment record);

    SysDepartment selectByPrimaryKey(Integer departmentId);

    int updateByPrimaryKeySelective(SysDepartment record);

    List<SysDepartment> selectAll();

    List<SysDepartment> selectByParentId(Integer parentDepartmentId);
}